<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="org.jeecgframework.web.util.StaticValue" %>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="org.jeecgframework.web.system.pojo.base.CbsServiceLogEntity" %>
<%@include file="/context/mytags.jsp" %>
<html>
<head>
    <title>技术支持完工单</title>
    <t:base type="jquery,easyui,tools,DatePicker"></t:base>
    <link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css"/>
    <script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.min.js"></script>
    <script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
</head>
<script>

    $(function () {
        $('#esTypeId').combotree({
            url: 'cbsTechologyAgreeReportController.do?getEqTypes',
            required: false
        });
    })


    $(function () {
        var province = $("#province").val();
        $.ajax({
            type: "post",
            dataType: "json",
            data: {"province": province},
            url: "cbsServiceReportController.do?getCityByCode",
            success: function (data) {
                var obj = data.obj;
                var html = " <option>--请选择--</option>";
                for (i in obj) {
                    html += "<option value='" + obj[i].territoryCode + "'>" + obj[i].territoryName + "</option>";
                }
            }
        })
    })

    function lookBackImg(obj) {
        addOneTab('预览', 'cbsServiceController.do?openViewFile&fileid=' + obj.id)
    }

    function getCity() {
        var province = $("#province").val();
        $.ajax({
            type: "post",
            dataType: "json",
            data: {"province": province},
            url: "cbsTechologyAgreeReportController.do?getCityByCode",
            success: function (data) {
                var obj = data.obj;
                var html = " <option>--请选择城市--</option>";
                for (i in obj) {
                    html += "<option value='" + obj[i].territoryCode + "'>" + obj[i].territoryName + "</option>";
                }
                $('#city').html(html)
            }
        })
    }

    $(function () {
        var serviceId = $("#serviceId").val();
        $("#uploadFinishFile").uploadify({
            buttonText: '选择文件',
            auto: true,
            progressData: 'speed',
            multi: true,
            height: 20,
            width: 60,
            overrideEvents: ['onDialogClose'],
            queueID: 'instructionfile',
            /*fileTypeDesc : '文件格式:',
            fileTypeExts : '*.*',*/
            fileTypeDesc: '文件格式:',
            fileTypeExts: '*', //控制可上传文件的扩展名，启用本项时需同时声明fileDesc
            fileSizeLimit: '50MB',
            swf: 'plug-in/uploadify/uploadify.swf',
            uploader: '<%=basePath%>/cbsTechologyAgreeReportController.do?fileUploadView&serviceId=' + serviceId + '&sessionId=' + $("#sessionId").val() + '',
            onUploadStart: function () {
                lockmask(true, '请稍等,导入中...');
            },
            onUploadSuccess: function (file, data) {
                lockmask(false);
                var json = $.parseJSON(data).attributes;
                var fileIds = $("#fileId").val();
                console.log("json:" + json.id)
                var html = '<input id="filePicId' + json.id + '" name="fileName" hidden="hidden" value="' + json.id + '"><span id="li_file_' + json.id + '"><span class="color-blue" id="' + json.id + '" name="fileNames">' + json.name + '</span>&nbsp;&nbsp; ' +
                    '<span style="cursor: pointer;" onclick=\'delFinishFile("' + json.id + '")\'>删除</span>&emsp;</span>'
                $("#file").prepend(html);
                // tip("上传成功！");
            }, onFallback: function () {
                tip("您未安装FLASH控件，无法上传文件！请安装FLASH控件后再试");
            }, onSelectError: function (file, errorCode, errorMsg) {
                switch (errorCode) {
                    case -100:
                        tip("上传的文件数量已经超出系统限制的" + $('#instruction').uploadify('settings', 'queueSizeLimit') + "个文件！");
                        break;
                    case -110:
                        tip("文件 [" + file.name + "] 大小超出系统限制的50MB大小！");
                        break;
                    case -120:
                        tip("文件 [" + file.name + "] 大小异常！");
                        break;
                    case -130:
                        tip("文件 [" + file.name + "] 类型不正确！");
                        break;
                }
                ;
            }
        });
    });

    function delFinishFile(id) {
        var flag = true;
        $.ajax({
            url: "cbsTechologyAgreeReportController.do?delFile",
            data: {
                "id": id
            },
            cache: false,
            dataType: 'json',
            type: 'POST',
            async: false,
            success: function (data) {
                if (!data.success) {
                    flag = false;
                    tip(data.msg);
                } else {
                    tip(data.msg);
                    //隐藏标签
                    $("#li_file_" + id + "").remove();
                    $("#filePicId" + id + "").remove();
                    $("#photo").val("");
                }
            }
        });
    }


    function ZC() {
        var actualTime = $('#actualTime').val()
        var closeTime = $('#closeTime').val()
        var zyCinemaName = $('#zyCinemaName').val()
        var province = $('#province').val()
        var city = $('#city').val()
        var address = $('#address').val()
        var typename = $('#typename').val()
        var contactsName = $('#contactsName').val()
        var phone = $('#phone').val()
        var sn = $('#sn').val()
        var cbserviceCode = $('#cbserviceCode').val()
        var tabName = "编辑服务单" + cbserviceCode;
        var nodes = $('#esTypeId').combotree('getValue');
        var fileIds = [];
        $("input[name='fileName']").each(function (j, data) {
            console.log(data.value);
            fileIds.push(data.value);
        });
        console.log("fileIds:" + fileIds);
        $.ajax({
            type: "post",
            data: {'eqType': nodes},
            url: "cbsTechologyAgreeReportController.do?getTypes",
            dataType: "json",
            success: function (data) {
                var tbs = data.obj;
                if (tbs != null && tbs.length > 0) {
                    tip("请选择正确的放映机类型");
                } else {
                    $.ajax({
                        type: "post",
                        data: $("#dataForm").serialize(),
                        url: "cbsTechologyAgreeReportController.do?ZCTechnologyAgree",
                        dataType: "json",
                        success: function (data) {
                            if(data.success){
                                tip("暂存成功");
                                closetab(tabName);
                                window.top.$("#maintabs").tabs({
                                    title: tabName,
                                    onBeforeClose: function (title, index) {
                                    }
                                });
                                window.top.$("#maintabs").tabs('close', tabName);
                                // addOneTab("服务单管理", "cbsServiceController.do?cbsService");
                                setTimeout("closetab('技术支持完工单')", 1000);
                            }else{
                                tip(data.msg);
                            }
                        }
                    });
                }
            }
        })

    }


    function sub() {
        var actualTime = $('#actualTime').val()
        var closeTime = $('#closeTime').val()
        var zyCinemaName = $('#zyCinemaName').val()
        var province = $('#province').val()
        var city = $('#city').val()
        var address = $('#address').val()
        var typename = $('#typename').val()
        var contactsName = $('#contactsName').val()
        var phone = $('#phone').val()
        var sn = $('#sn').val()
        var cbserviceCode = $('#cbserviceCode').val()
        var tabName = "编辑服务单" + cbserviceCode;
        if (actualTime == null || actualTime == '') {
            $('#actualTimeErr').show()
            parent.window.tip("请填写实际上门时间")
            return false;
        }
        if (closeTime == null || closeTime == '') {
            $('#closeTimeErr').show()
            parent.window.tip("请填写服务完工时间")
            return false;
        }
        if (zyCinemaName == null || zyCinemaName == '') {
            $('#zyCinemaNameErr').show()
            parent.window.tip("请填写影院名称")
            return false;
        }
        if (province == null || province == '') {
            $('#cityErr').show()
            parent.window.tip("请填写影院所在省市")
            return false;
        }
        if (city == null || city == '') {
            $('#cityErr').show()
            parent.window.tip("请填写影院所在省市")
            return false;
        }
        if (address == null || address == '') {
            $('#addressErr').show()
            parent.window.tip("请填写影院地址")
            return false;
        }
        if (typename == null || typename == '') {
            $('#typenameErr').show()
            parent.window.tip("请填写院线")
            return false;
        }
        if (contactsName == null || contactsName == '') {
            $('#contactsNameErr').show()
            parent.window.tip("请填写联系人姓名")
            return false;
        }
        if (phone == null || phone == '') {
            $('#phoneErr').show()
            parent.window.tip("请填写联系人电话")
            return false;
        }
        if (sn == null || sn == '') {
            $('#snErr').show()
            parent.window.tip("请填写放映机序列号")
            return false;
        }
        /* var eqType=$('#esTypeId').combotree("getValues");
         console.log("eqType:"+eqType)*/
        // var nodes = $('#esTypeId').combotree('tree').tree('getSelected');
        var nodes = $('#esTypeId').combotree('getValue');
        //alert("nodes:"+nodes.id)
        var fileIds = [];
        $("input[name='fileName']").each(function (j, data) {
            fileIds.push(data.value);
        });
        $.ajax({
            type: "post",
            data: {'eqType': nodes},
            url: "cbsTechologyAgreeReportController.do?getTypes",
            dataType: "json",
            success: function (data) {
                var tbs = data.obj;
                //alert(tbs.length);
                if (tbs != null && tbs.length > 0) {
                    tip("请选择正确的放映机类型");
                } else {
                    $.ajax({
                        type: "post",
                        data: $("#dataForm").serialize(),
                        url: "cbsTechologyAgreeReportController.do?subTechnologyAgree",
                        dataType: "json",
                        success: function (data) {
                            if (data.success) {
                                tip("提交成功");
                                var cbserviceId = $('#serviceId').val();
                                $.ajax({
                                    type: "post",
                                    data: {"id": cbserviceId},
                                    url: "cbsServiceReportController.do?getRole",
                                    dataType: "json",
                                    success: function (data) {
                                        var rData = data.attributes;
                                        if (rData != null) {
                                            var role = rData.role;
                                            jQuery.messager.confirm('提示:', '是否提交返件申请?', function (event) {
                                                if (event) {
                                                    if (role == "EG" || role == "AEG" || role == "barcoCSE") {
                                                        addOneTab("待返件任务", "cbsReturnEquipmentController.do?cbsReturnEquipmentGCS");
                                                        setTimeout("closetab('技术支持完工单')", 1000);
                                                    }
                                                    if (role == "HD") {
                                                        addOneTab("返件管理", "cbsReturnEquipmentController.do?cbsReturnEquipmentCSA");
                                                        setTimeout("closetab('技术支持完工单')", 1000);
                                                    }
                                                    //TODO  打开该服务单的返件申请列表页

                                                } else {
                                                    var type = $("#typeRole").val();
                                                    if (type == '') {
                                                        addOneTab("我的任务", "cbsServiceAssignListController.do?engineerlists");
                                                        setTimeout("closetab('技术支持完工单')", 1000);

                                                    } else {
                                                        closetab(tabName);
                                                        window.top.$("#maintabs").tabs({
                                                            title: tabName,
                                                            onBeforeClose: function (title, index) {
                                                            }
                                                        });
                                                        window.top.$("#maintabs").tabs('close', tabName);
                                                        addOneTab("服务单管理", "cbsServiceController.do?cbsService");
                                                        setTimeout("closetab('技术支持完工单')", 1000);
                                                    }
                                                    // addOneTab("我的任务","cbsServiceAssignListController.do?engineerlists");
                                                    // setTimeout("closetab('技术支持完工单')",1000);
                                                }
                                            });
                                        } else {
                                            var type = $("#typeRole").val();
                                            if (type == '') {
                                                addOneTab("我的任务", "cbsServiceAssignListController.do?engineerlists");
                                                setTimeout("closetab('技术支持完工单')", 1000);

                                            } else {
                                                addOneTab("服务单管理", "cbsServiceController.do?cbsService");
                                                setTimeout("closetab('技术支持完工单')", 1000);
                                            }
                                        }
                                    }
                                });
                            } else {
                                tip(data.msg);
                            }
                            //setTimeout(" window.location.href='cbsDelinerController.do?cbsDeliner'",1000);
                            // setTimeout("closetab('技术支持完工单');",1000);
                            // setTimeout(" window.location.href='cbsServiceAssignListController.do?engineerlists'",1000);
                        }
                    })
                }
            }
        })
    }


    function checkeNull(obj) {
        //alert("id:"+obj.id)
        //alert("value:"+obj.value)
        var value = obj.value;
        if (value == null || value == '') {
            $('#' + obj.id + 'Err').show();
        } else {
            $('#' + obj.id + 'Err').hide();
        }
    }
</script>
<body>
<div style="margin-bottom:10px;">
    <div style="text-align: center; width: 100%; ">
        <c:if test="${!editReport}">
            <a class="easyui-linkbutton l-btn" onclick="ZC()">暂存</a>
        </c:if>
        <a href="#" class="easyui-linkbutton l-btn" onclick="sub()">提交</a>
        <input type="hidden" id="sessionId" value="${pageContext.session.id}">
        <input type="hidden" id="typeRole" value="${typeRole}"/>
    </div>
</div>
<form id="dataForm" name="dataForm" action="" method="post">
    <input type="hidden" name="type" value="${type}" id="type">
    <input type="hidden" name="editReport" value="${editReport}">
    <div class="subtitle">
        <p>完工报告</p>
        <table class="nobordertable noborder">

            <c:if test="${techologyAgree!=null}">
                <input id="serviceId" hidden="hidden" name="serviceId" value="${techologyAgree.serviceId.id}">
                <input id="cbserviceCode" hidden="hidden" value="${lightReport.serviceId.code}">
            </c:if>
            <c:if test="${techologyAgree==null}">
                <input id="serviceId" hidden="hidden" name="serviceId" value="${cbsServiceEntity.id}">
                <input id="cbserviceCode" hidden="hidden" value="${cbsServiceEntity.code}">
            </c:if>
            <tbody>
            <tr>
                <td class="al_r" width="20%">
                    <label>预计上门时间:</label>
                </td>
                <td width="30%">
                    <c:if test="${techologyAgree!=null}">
                        <input readonly="readonly" name="orderTime" id="orderTime"
                               value="<fmt:formatDate value='${techologyAgree.orderTime}' type="date" pattern="yyyy-MM-dd"/>"
                               style="border: white">
                    </c:if>
                    <c:if test="${techologyAgree==null}">
                        <c:if test="${cbsServiceEntity.orderTimeAgin!=null && cbsServiceEntity.orderTimeAgin!=''}">
                            <input readonly="readonly" name="orderTime" id="orderTime"
                                   value="<fmt:formatDate value='${cbsServiceEntity.orderTimeAgin}' type="date" pattern="yyyy-MM-dd"/>"
                                   style="border: white">
                        </c:if>
                        <c:if test="${cbsServiceEntity.orderTimeAgin==null || cbsServiceEntity.orderTimeAgin==''}">
                            <input readonly="readonly" name="orderTime" id="orderTime"
                                   value="<fmt:formatDate value='${cbsServiceEntity.orderTime}' type="date" pattern="yyyy-MM-dd"/>"
                                   style="border: white">
                        </c:if>
                        <%--input id ="orderTime" name ="orderTime" class="Wdate" onclick="WdatePicker()"
                               value="<fmt:formatDate value='${cbsServiceEntity.orderTime}' type="date" pattern="yyyy-MM-dd"/>"/>--%>
                    </c:if>
                </td>
                <td class="al_r" width="20%">
                    <label><font color="red">*</font>实际上门时间:</label>
                </td>
                <td width="30%">
                    <c:if test="${techologyAgree!=null}">
                        <input id="actualTime" onblur="checkeNull(this)" name="actualTime" class="Wdate"
                               onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                               value="<fmt:formatDate value='${techologyAgree.actualTime}' type="date" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
                    </c:if>
                    <c:if test="${techologyAgree==null}">
                        <input id="actualTime" onblur="checkeNull(this)" name="actualTime" class="Wdate"
                               onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                               value="<fmt:formatDate value='${arrivalofabnormal.create_date}' type="date" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
                    </c:if>
                    <span id="actualTimeErr" hidden="hidden" style="color: red;font-size: 10px">实际上门时间不能为空</span>
                </td>
            </tr>
            <tr>
                <td class="al_r" width="20%">
                    <label>上门次数:</label>
                </td>
                <td width="30%">
                    <c:if test="${techologyAgree!=null}">
                        <input name="sceneTotal" readonly="readonly" type="text" value="${techologyAgree.sceneTotal}">
                    </c:if>
                    <c:if test="${techologyAgree==null}">
                        <input name="sceneTotal" readonly="readonly" type="text" value="${arrivalofabnormal.num}">
                    </c:if>
                </td>
                <td class="al_r" width="20%">
                    <label><font color="red">*</font>服务完工时间:</label>
                </td>
                <td width="30%">
                    <c:if test="${techologyAgree!=null}">
                        <input id="closeTime" onblur="checkeNull(this)" name="closeTime" class="Wdate"
                               onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                               value="<fmt:formatDate value='${techologyAgree.finishTime}' type="date" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
                    </c:if>
                    <c:if test="${techologyAgree==null}">
                        <input id="closeTime" onblur="checkeNull(this)" name="closeTime" class="Wdate"
                               onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                               value="<fmt:formatDate value='${cbsServiceEntity.closeTime}' type="date" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
                    </c:if>
                    <span id="closeTimeErr" style="color: red;font-size: 10px" hidden="hidden">服务完工时间不能为空</span>

                </td>
            </tr>
            <tr>
                <td class="al_r" width="20%" valign="top">
                    <label><font color="red">*</font>影院名称:</label>
                </td>
                <td width="30%" valign="top">
                    <c:if test="${techologyAgree!=null}">
                        <input id="zyCinemaName" onkeyup="checkeNull(this)" style="width: 300px" name="zyCinemaName"
                               value="${techologyAgree.cinemaName}"/>
                    </c:if>
                    <c:if test="${techologyAgree==null}">
                        <input id="zyCinemaName" onkeyup="checkeNull(this)" style="width: 300px" name="zyCinemaName"
                               value="${cbsServiceEntity.zyCinemaName}"/>
                    </c:if>
                    <br><span id="zyCinemaNameErr" style="font-size: 10px;color: red" hidden="hidden">影院名称不能为空</span>
                </td>
                <td class="al_r" width="20%" valign="top">
                    <label><font color="red">*</font>影院地址:</label>
                </td>
                <td width="30%" valign="top">
                    <select name="province" style="width:100px" id="province" onchange="getCity()">
                        <option value="">--请选择省份--</option>
                        <c:if test="${techologyAgree!=null}">
                            <c:forEach items="${territoryList}" var="terry">
                                <option
                                        <c:if test="${techologyAgree.sheng.territoryName == terry.territoryName}">selected="selected"</c:if>
                                        value="${terry.territoryCode}">${terry.territoryName}</option>
                            </c:forEach>
                        </c:if>
                        <c:if test="${techologyAgree==null}">
                            <c:forEach items="${territoryList}" var="terry">
                                <option
                                        <c:if test="${cbsServiceEntity.province.territoryName == terry.territoryName}">selected="selected"</c:if>
                                        value="${terry.territoryCode}">${terry.territoryName}</option>
                            </c:forEach>
                        </c:if>
                    </select>
                    <select style="width:100px" id="city" name="city" onchange="checkeNull(this)">
                        <option value="">--请选择城市--</option>
                        <c:if test="${techologyAgree!=null}">
                            <c:forEach items="${cityList}" var="terry">
                                <option
                                        <c:if test="${techologyAgree.shi.territoryName == terry.territoryName}">selected="selected"</c:if>
                                        value="${terry.territoryCode}">${terry.territoryName}</option>
                            </c:forEach>
                        </c:if>
                        <c:if test="${techologyAgree==null}">
                            <c:forEach items="${cityList}" var="city">
                                <option
                                        <c:if test="${cbsServiceEntity.city.territoryCode == city.territoryCode}">selected="selected"</c:if>
                                        value="${city.territoryCode}">${city.territoryName}</option>
                            </c:forEach>
                        </c:if>
                    </select>
                    <span id="cityErr" style="color: red;font-size: 10px" hidden="hidden">影院所在省市不能为空</span>
                </td>
            </tr>
            <tr>
                <td class="al_r" width="20%">
                    <label><font color="red">*</font>所属院线:</label>
                </td>
                <td width="30%">
                    <c:if test="${techologyAgree!=null}">
                        <input onkeyup="checkeNull(this)" id="typename" name="typename"
                               value="${techologyAgree.typeIntheaterName}"/>
                    </c:if>
                    <c:if test="${techologyAgree==null}">
                        <input onkeyup="checkeNull(this)" id="typename" name="typename"
                               value="${cbsServiceEntity.typename}"/>
                    </c:if>
                    <span id="typenameErr" hidden="hidden" style="font-size: 10px;color:red;">院线不能为空</span>
                </td>
                <td class="al_r" width="20%">

                </td>
                <td width="30%">
                    <c:if test="${techologyAgree!=null}">
                        <input id="address" onkeyup="checkeNull(this)" name="address" style="width: 300px"
                               value="${techologyAgree.address}"/>
                    </c:if>
                    <c:if test="${techologyAgree==null}">
                        <input id="address" onkeyup="checkeNull(this)" name="address" style="width: 300px"
                               value="${cbsServiceEntity.address}"/>
                    </c:if>
                    <br><span hidden="hidden" id="addressErr" style="color: red;font-size: 10px">影院地址不能为空</span>
                </td>
            </tr>
            <tr>
                <td class="al_r" width="20%">
                    <label><font color="red">*</font>联系人:</label>
                </td>
                <td width="30%">
                    <c:if test="${techologyAgree!=null}">
                        <input onkeyup="checkeNull(this)" id="contactsName" name="contactsName"
                               value="${techologyAgree.contactsName}"/>
                    </c:if>
                    <c:if test="${techologyAgree==null}">
                        <input onkeyup="checkeNull(this)" id="contactsName" name="contactsName"
                               value="${cbsServiceEntity.contactsName}"/>
                    </c:if>
                    <span hidden="hidden" id="contactsNameErr" style="color: red;font-size: 10px">联系人姓名不能为空</span>
                </td>
                <td class="al_r" width="20%">
                    <label><font color="red">*</font>电话:</label>
                </td>
                <td width="30%">
                    <c:if test="${techologyAgree!=null}">
                        <input onkeyup="checkeNull(this)" id="phone" name="phone" value="${techologyAgree.phone}"/>
                    </c:if>
                    <c:if test="${techologyAgree==null}">
                        <input onkeyup="checkeNull(this)" id="phone" name="phone"
                               value="${cbsServiceEntity.contactsPhone}"/>
                    </c:if>
                    <span hidden="hidden" id="phoneErr" style="color: red;font-size: 10px">联系人电话不能为空</span>
                </td>
            </tr>
            <tr>
                <td class="al_r" width="20%">
                    <label>放映机序列号:<font color="red">*</font></label>
                </td>
                <td width="30%">
                    <c:if test="${techologyAgree!=null}">
                        <input onkeyup="checkeNull(this)" id="sn" name="sn" value="${techologyAgree.sn}"/>
                    </c:if>
                    <c:if test="${techologyAgree==null}">
                        <input onkeyup="checkeNull(this)" id="sn" name="sn" value="${cbsServiceEntity.sn}"/>
                    </c:if>
                    <span hidden="hidden" id="snErr" style="color: red;font-size: 10px">放映机序列号不能为空</span>
                </td>
                <td class="al_r" width="20%">
                    <label>放映机型号:</label>
                </td>
                <td width="30%">
                    <c:if test="${techologyAgree!=null}">
                        <input id="esTypeId" name="esTypeId" value="${techologyAgree.equipmentType.id}"/>
                    </c:if>
                    <c:if test="${techologyAgree==null}">
                        <input id="esTypeId" name="esTypeId" value="${cbsServiceEntity.zyEquipmentSpareId.type.id}">
                    </c:if>
                </td>
            </tr>
            <tr>
                <td class="al_r" width="20%">
                    <label>派单要求:</label>
                </td>
                <td colspan="3">
                    <c:if test="${techologyAgree!=null}">
                        <input id="assignDes" readonly="readonly" style="border: white" name="assignDes"
                               value="${techologyAgree.assignDes}"/>
                    </c:if>
                    <c:if test="${techologyAgree==null}">
                        <input id="assignDes" readonly="readonly" style="border: white" name="assignDes"
                               value="${serviceAssign.assign_des}">
                    </c:if>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="line"></div>
        <div style="text-align: center; font-weight: bold;font-size:17px;">现场信息记录</div>
        <table class="nobordertable noborder">
            <tbody>
            <tr>
                <td class="al_r" width="20%">
                    <label>现场附件:</label>
                </td>
                <td colspan="3">
                    <input type="button" value="上传附件" id="uploadFinishFile"/>
                </td>
            </tr>

            <tr>
                <td class="al_r" width="20%"></td>
                <td colspan="3">
                    <span id="file">
                        <c:forEach items="${fileList}" var="file">
                            <input id="filePicId"${file.id} name="fileName" hidden="hidden" value="${file.id}'">
                            <span id="li_file_${file.id}">
                                <%--<span class="color-blue" id="${file.id}" onclick="lookBackImg(this)" name="fileNames">${file.oldFileName}</span>--%>
                                <a href="fileUploadController.do?downLoadFile&fileLogId=${file.id}">${file.oldFileName}</a>&emsp;
                                <span style="cursor: pointer;" onclick="delFinishFile('${file.id}')">删除</span>&emsp;
                            </span>&emsp;
                        </c:forEach>
                    </span>
                    <input type="hidden" id="finishFileId" name="finishFileId">
                    <br><span class="color-red">根据派单要求不同，可上传照片、邮件、压缩包。</span>
                </td>
            </tr>
            <tr>
                <td class="al_r" width="20%" valign="top">
                    <label>现场服务描述:</label>
                </td>
                <td colspan="3">
                    <textarea style="width: 100%; height: 60px;" id="serviceDes" maxlength="200"
                              name="serviceDes">${techologyAgree.serviceDes}</textarea>
                </td>
            </tr>
            <tr>
                <td class="al_r" width="20%" valign="top">
                    <label>备注:</label>
                </td>
                <td colspan="3">
                    <textarea style="width: 100%; height: 60px;" id="memo" maxlength="200"
                              name="memo">${techologyAgree.memo}</textarea>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</form>
</body>
</html>
